package com.youpai.platform.wallet.web.enums;

import lombok.AllArgsConstructor;

/**
 * @date: 2023/2/26
 * @author: Welles
 * @version: 1.0
 * @description: 增加coin返回类型枚举
 */
@AllArgsConstructor
public enum ChangeCoinResultEnum {

    SUCCESS(200, "成功"),

    CHANGE_COIN_ERROR(500, "增加/减少金额异常"),

    WALLET_NOT_EXIST(1000, "钱包不存在"),
    UID_EMPTY(1001, "uid不能为空"),
    CHANGE_TYPE_EMPTY(1002, "增加/减少金币类型为空"),
    CHANGE_NUMBER_EMPTY(1003, "金币修改金额为空"),
    INVALID_CHANGE_NUMBER(1004, "不合法的修改数量"),
    COIN_NOT_ENOUGH(1005, "金币剩余数量不足"),
    ;

    /**
     * code
     */
    public final int code;

    /**
     * 消息
     */
    public final String msg;

}
